package com.tinckay.entity.form;

import com.tinckay.common.constant.RegexConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @Author: Jean
 * @Desc: 找回密码表单
 * @Date: 2018/11/5 19:36
 */
@Data
public class FindPasswordForm {

    @ApiModelProperty("手机验证码")
    @NotBlank(message = "验证码不能为空")
    private String validCode;

    @ApiModelProperty("修改新密码")
    @Pattern(regexp = RegexConstant.PASS_WORD, message = "密码不符合验证规则")
    private String newPassword;

    @ApiModelProperty("手机号码")
    @Pattern(regexp = RegexConstant.MOBILE_PHONE, message = "手机号码不符合验证规则")
    private String mobile;
}
